import { request } from "./request";

const api = {
    login: '/api/login',
    loginByPhone: '/wechat/playerLogin'
}

const wxLogin = (data) => {
    return request(api.login, data, 'POST')
}
const wxLoginByPhone = (data) => {
    return request(api.loginByPhone, data, 'POST')
}



export default {
    wxLogin,wxLoginByPhone
}